Skip to content

chore: Enable automatic peer dependency while we are pre 1.0#1324

Merged
jsonbailey merged 1 commit intomainfrom
jb/peer-dep-release-please
Apr 27, 2026
Merged

chore: Enable automatic peer dependency while we are pre 1.0#1324
jsonbailey merged 1 commit intomainfrom
jb/peer-dep-release-please

Conversation

@jsonbailey
Copy link
Copy Markdown
Contributor

@jsonbailey jsonbailey commented Apr 27, 2026

Summary

  • Sets updatePeerDependencies: true in the node-workspace release-please plugin
  • Ensures provider packages (server-sdk-ai-langchain, server-sdk-ai-openai, server-sdk-ai-vercel) have their peer dep ranges bumped automatically whenever server-sdk-ai releases
  • Fixes the incompatibility flagged by Cursor Bugbot on chore: release main #1323: in 0.x semver, ^0.17.0 means >=0.17.0 <0.18.0, so a minor bump to the SDK immediately breaks the peer dep constraint

Post-1.0

Once server-sdk-ai reaches 1.0, flip updatePeerDependencies back to false. At that point ^1.0.0 covers all 1.x.x releases and provider packages won't need a peer dep bump with every SDK minor/patch release.

Test plan

  • Merge this PR
  • Confirm the open release-please PR (chore: release main #1323) is updated/regenerated with peer dep bumps included automatically

🤖 Generated with Claude Code


Note

Low Risk
Low risk config-only change that affects release automation by updating peer dependency ranges during workspace version bumps.

Overview
Enables updatePeerDependencies for the node-workspace release-please plugin so release PRs automatically bump workspace package peer dependency ranges when related packages are released (notably helpful for 0.x versions where ^ ranges are narrow).

Reviewed by Cursor Bugbot for commit 84c1bcb. Bugbot is set up for automated code reviews on this repo. Configure here.

Pre-1.0, ^0.x.0 ranges are narrow (>=0.x.0 <0.(x+1).0), so every minor
bump to server-sdk-ai breaks the peer dep constraint in provider packages.
Setting updatePeerDependencies to true ensures release-please keeps them
in sync automatically. Revert to false after the 1.0 release.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jsonbailey jsonbailey changed the title ci: enable automatic peer dependency updates in release-please chore: Enable automatic peer dependency while we are pre 1.0 Apr 27, 2026
@jsonbailey jsonbailey marked this pull request as ready for review April 27, 2026 18:57
@jsonbailey jsonbailey requested a review from a team as a code owner April 27, 2026 18:57
@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 38473 bytes
Compressed size limit: 39000
Uncompressed size: 211104 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31840 bytes
Compressed size limit: 34000
Uncompressed size: 113634 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179547 bytes
Compressed size limit: 200000
Uncompressed size: 830815 bytes

@jsonbailey jsonbailey merged commit 972f90b into main Apr 27, 2026
39 of 45 checks passed
@jsonbailey jsonbailey deleted the jb/peer-dep-release-please branch April 27, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants